<script setup>
import { onBeforeMount, ref } from "vue";
import Layout from "./view/layout/index.vue";

const token = ref();
// onBeforeMount(() => {
//   window.addEventListener("message", (res) => {
//     token.value = res.data.token;
//     localStorage.setItem("token", token.value);
//   });
// });

localStorage.setItem("token", undefined);
</script>

<template>
  <router-view></router-view>
</template>

<style scoped>
#app {
  width: 100%;
  height: 100%;
  background: #af2020;
}
</style>
